#ifndef IMAGECHANGE_H
#define IMAGECHANGE_H

#include "Change/change.h"

class ImageChange : public Change
{
public:
	ImageChange(int newRev, int newUser, int newDoc, int newPos, int newWidth, int newHeight, QByteArray data);

    ImageChange(QByteArray bytes);		//create change from a byte array

    QByteArray toBytes();				//convert the change into a byte array

    int getWidth() {return width;}
    int getHeight() {return height;}
	QByteArray getImageData() {return imageData;}

    void setWidth(int newWidth) {width = newWidth;}
    void setHeight(int newHeight) {height = newHeight;}
	void setImageData(QByteArray data) {imageData = data;}

private:
    int width;
    int height;
	QByteArray imageData;
};

#endif // IMAGECHANGE_H
